package com.lgs.demo.bean;

import android.content.Context;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.lgs.demo.R;
import com.lgs.demo.base.BaseHolder;
import com.lgs.demo.utils.ZSwipeItem;

import butterknife.BindView;

/**
 * Created by Administrator on 2018/1/3.
 */

public class MarketHolder extends BaseHolder<MarkBean> {

    @BindView(R.id.tv_volume_name)
    TextView mTvVolumeName;
    @BindView(R.id.tv_volumes)
    TextView mTvVolumes;
    @BindView(R.id.tv_volume_num)
    TextView mTvVolumeNum;
    @BindView(R.id.tv_new_price)
    TextView mTvNewPrice;
    @BindView(R.id.tv_volume_price)
    TextView mTvVolumePrice;
    @BindView(R.id.tv_rose)
    TextView mTvRose;
    @BindView(R.id.ll)
    LinearLayout mLl;
    @BindView(R.id.tv_volume)
    TextView mTvVolume;
    @BindView(R.id.swipe_item)
    ZSwipeItem mSwipeItem;

    public MarketHolder(Context context) {
        super(context);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.item_market;
    }

    @Override
    protected void refreshView() {
//        mSwipeItem.setEnabled(false);
        mTvVolumeName.setText(item.getVolumeName());
        mTvVolumes.setText("/BTC");
        mTvVolumeNum.setText("" + 11);
        mTvNewPrice.setText("" + 100.00);
        mTvVolumePrice.setText("￥100.00");
        mTvRose.setText(item.getRose());

    }
}

